package com.yonyou.pmclouds.alter.process;

import com.yonyou.pmclouds.alter.entity.AlterVO;
import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;

public class AlterInsertCheckProcessor implements SingleProcessor<AlterVO> {

    @Override
    public void process(AlterVO vo, AlterVO orig) throws BusinessException {
        if(vo == null){
            throw new BusinessException("单据不能为空！");
        }
        if(vo.getApplyDate() == null){
            throw new BusinessException("申请日期不能为空！");
        }
//        变更申请无施工单位
//        if(vo.getPkEnterprise() == null){
//            throw new BusinessException("施工单位不能为空！");
//        }
    }
}
